package com.example.handdet.guesture;

import android.content.res.AssetManager;
import android.graphics.Bitmap;

public class NanoDet {

    static {
        System.loadLibrary("guest");
    }

    public static native int init(AssetManager manager, boolean useGPU);

    public static native Bbox[] detect(Bitmap bitmap, int w, int h, double threshold, double nms_threshold);

    public static Bbox[] detect(Bitmap bitmap, double threshold, double nms_threshold){
        int w = bitmap.getWidth();
        int h = bitmap.getHeight();
        return  detect(bitmap, w, h, threshold, nms_threshold);
    }

}
